home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / CHIP Kasım 1996.iso / ms / webpost / wpsdk.exe / RCDATA / CABINET / WPAPI.H < prev    next >
C/C++ Source or Header  |  1996-06-17  |  3KB  |  118 lines

  1. /*****************************************************************/
  2. /**               Microsoft Windows 4.00                        **/
  3. /**           Copyright (C) Microsoft Corp., 1995-1996          **/
  4. /*****************************************************************/
  5.  
  6. /* WPAPI.H -- WebPost Interface definitions
  7.  *
  8.  */
  9.  
  10. #ifndef _wpapi_h_
  11. #define _wpapi_h_
  12.  
  13. //
  14. // Assume packing on DWORD boundary
  15. //
  16. #include <pshpack4.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. typedef struct tagWPSITEINFOA {
  23.     DWORD    dwSize;
  24.     DWORD    dwFlags;
  25.     LPSTR    lpszSiteName;
  26.     LPSTR    lpszSiteURL;
  27. } WPSITEINFOA, *LPWPSITEINFOA;
  28.  
  29. typedef struct tagWPSITEINFOW {
  30.     DWORD    dwSize;
  31.     DWORD    dwFlags;
  32.     LPWSTR    lpszSiteName;
  33.     LPWSTR    lpszSiteURL;
  34. } WPSITEINFOW, *LPWPSITEINFOW;
  35.  
  36. // dwFlag fro WPSITEINFO
  37. #define WPSF_CAN_BROWSE_DIR            0x00000001
  38. #define WPSF_NEEDS_COMMIT            0x00000002
  39. #define WPSF_CONNECTED_TO_NETWORK    0x00000004
  40. #define WPSF_LOGGED_IN_TO_SERVER    0x00000008
  41.  
  42. #ifdef UNICODE
  43. #define WPSITEINFO                WPSITEINFOW
  44. #define LPWPSITEINFO            LPWPSITEINFOW
  45.  
  46. #else
  47. #define WPSITEINFO                WPSITEINFOA
  48. #define LPWPSITEINFO            LPWPSITEINFOA
  49.  
  50. #endif
  51.  
  52.  
  53. // dwFlag for WpPost
  54. #define WPF_NO_RECURSIVE_POST        0x00000001
  55. #define WPF_NO_WIZARD                0x00000002
  56. #define WPF_MINIMAL_UI                0x00000004
  57. #define WPF_FIRST_FILE_AS_DEFAULT    0x00000008
  58.  
  59. DWORD WINAPI WpPostW(HWND hwnd, 
  60.                     DWORD cLocalPaths, LPWSTR *lppszLocalPaths, 
  61.                     LPDWORD lpcbSiteName, LPWSTR lpszSiteName,
  62.                     LPDWORD lpcbURL, LPWSTR lpszURL, 
  63.                     DWORD dwFlag);
  64. DWORD WINAPI WpListSitesW(LPDWORD lpcbSites, LPWPSITEINFOW lpSiteInfo,
  65.                             LPDWORD lpcSites);
  66. DWORD WINAPI WpDeleteSiteW(LPCWSTR lpszSiteName);
  67.  
  68. DWORD WINAPI
  69. WpBindToSiteW(
  70.     HWND    hwnd,
  71.     LPCWSTR    lpszSiteName,
  72.     LPCWSTR    lpszURL,
  73.     DWORD    dwFlag,
  74.     DWORD    dwReserved,
  75.     PVOID     *ppvObj);
  76.  
  77. DWORD WINAPI WpPostA(HWND hwnd,
  78.                     DWORD cLocalPaths, LPSTR *lppszLocalPaths, 
  79.                     LPDWORD lpcbSiteName, LPSTR lpszSiteName,
  80.                     LPDWORD lpcbURL, LPSTR lpszURL, 
  81.                     DWORD dwFlag);
  82. DWORD WINAPI WpListSitesA(LPDWORD lpcbSites, LPWPSITEINFOA lpSiteInfo,
  83.                             LPDWORD lpcSites);
  84. DWORD WINAPI WpDeleteSiteA(LPCSTR lpszSiteName);
  85.  
  86. DWORD WINAPI
  87. WpBindToSiteA(
  88.     HWND    hwnd,
  89.     LPCSTR    lpszSiteName,
  90.     LPCSTR    lpszURL,
  91.     DWORD    dwFlag,
  92.     DWORD    dwReserved,
  93.     PVOID     *ppvObj);
  94.  
  95.  
  96. #ifdef UNICODE
  97. #define WpPost                    WpPostW
  98. #define WpListSites                WpListSitesW
  99. #define WpDeleteSite            WpDeleteSiteW
  100. #define WpBindToSite            WpBindToSiteW
  101.  
  102. #else
  103. #define WpPost                    WpPostA
  104. #define WpListSites                WpListSitesA
  105. #define WpDeleteSite            WpDeleteSiteA
  106. #define WpBindToSite            WpBindToSiteA
  107.  
  108. #endif
  109.  
  110.  
  111. #ifdef __cplusplus
  112. }
  113. #endif
  114.  
  115. #include <poppack.h>
  116.  
  117. #endif // _wpapi_h_
  118.